package cn.cs.mapper;
import cn.cs.pojo.Shop;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface ShopMapper {


	public List<Shop> getShopList(Map<String, Object> param)throws Exception;

	public Shop getShopById(@Param(value = "id") Long id)throws Exception;

	public List<Shop> getShopListByMap(Map<String, Object> param)throws Exception;

	public Integer getShopCountByMap(Map<String, Object> param)throws Exception;

	public Integer insertShop(Shop shop)throws Exception;

	public Integer updateShop(Shop shop)throws Exception;

	public Integer deleteShopById(@Param(value = "id") Long id)throws Exception;

	public Long getShopNumberByAgentCode(@Param(value = "invitationCode") String invitationCode) throws Exception;

}
